<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="ch09.person.domain.*" %>
<jsp:useBean id="dao" class="ch09.person.dao.jdbc.PersonDao"/>
<%
	Person person = new Person();
	person.setId(10);
	person.setName("tester");
	
	dao.deletePerson(10);
	dao.insertPerson(person);
	person = null;
	person = dao.selectPerson(10);
	if(person != null ){
		out.println("PesonDao 테스트 성공.<br>");
		out.println(person.getId()+","+person.getName());
	}else{
		out.println("PersonDao 테스트 실패.");
	}
	
%>